// Copyright 2019 The rhyme_lph Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// L [author] rhyme_lph
// h [email]  rhymelph@gmail.com
// E [github] https://github.com/rhymelph

import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/entities/leave_type_entity.dart';
import 'package:flutter/material.dart';
import 'package:finance_app/src/page/hr_payroll/leave/select_adjustment_leave_type_page.dart';

class SelectAdjustmentLeaveTypeProvider extends BaseProvider {
  @override
  Future get dataFuture => null;

  void onSelectLeaveType(LeaveTypeEntity e) {
    obtainContext?.call((context) {
      Navigator.of(context).pop({
        'leaveType': e,
        'amount': '0',
      });
    });
  }
}
